﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace HPCloud.Objects.Domain.Compute.Common
{
    // Type created for JSON at <<root>> for deserializing list
    [System.Runtime.Serialization.DataContractAttribute()]
    public partial class BaseContainer <T>
    {
        [System.Runtime.Serialization.DataMemberAttribute()]
        public T [] _entities;
    }

    public class EntityRef
    {
        private string _id;
        private string _name;
        
        [DataMember(Name = "name")]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        [DataMember(Name = "id")]
        public string Id
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }
    }
}
